package com.sailmi.log.client.feign;

import com.sailmi.common.model.log.LogApiInfo;
import com.sailmi.common.model.log.LogErrorInfo;
import com.sailmi.common.model.log.LogUsualInfo;
import com.sailmi.common.tool.api.R;
import org.springframework.stereotype.Component;

/**
 * 日志fallback
 *
 * @author jiang
 */

@Component
public class LogClientFallback implements ILogClient {

	@Override
	public R<Boolean> saveUsualLog(LogUsualInfo log) {
		return R.fail("usual log send fail");
	}

	@Override
	public R<Boolean> saveApiLog(LogApiInfo log) {
		return R.fail("api log send fail");
	}

	@Override
	public R<Boolean> saveErrorLog(LogErrorInfo log) {
		return R.fail("error log send fail");
	}
}
